﻿	      <?php include("conn.php");
             mysql_query('SET NAMES UTF8'); 

	  

class MyPrizeBean
{
	public $quyu;
	public $quyuid;
	function __construct($quyu,$quyuid)
	{
		$this->quyu      = $quyu;
		$this->quyuid      = $quyuid;
		
	}
}


 
	$rert30=mysql_query("select *from quyu where cityid='".$_REQUEST[city]."'");
	
	$prize = array();
	
while($rowf=mysql_fetch_array($rert30))
{
 
			$prize[] = new MyPrizeBean($rowf['quyu'],$rowf['id']);
			
}
		
	

echo json_encode($prize);


?>